package com.wql.aop01.service.aspect;

import com.wql.aop01.service.annotion.WqlAnnotion;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/11 20:19
 */
@Component
@Aspect
public class WqlAdvice {
    @Pointcut("@annotation(org.springframework.web.bind.annotation.GetMapping)")
    private void logjoinpoint(){}
    @Before("logjoinpoint()")
    public void before(){
        System.out.println("添加日志");
    }
}
